import json
import re

with open("dashboard.js", "r", encoding="utf-8") as f:
    ss = f.read()
    s1 = re.compile(r"#statisticsTable\"\),(.*), function").findall(ss)[0]
    print(json.dumps(json.loads(s1),indent=2, ensure_ascii=False))
    print(json.loads(s1)["overall"]["data"])
    # print(s1)

    s1 = re.compile(r"#errorsTable\"\),(.*), function").findall(ss)[0]
    print(json.dumps(json.loads(s1), indent=2, ensure_ascii=False))
    # print(json.loads(s1)["overall"]["data"])